VERSION 5.00
Begin VB.Form frmRegister 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Registration"
   ClientHeight    =   2565
   ClientLeft      =   6990
   ClientTop       =   4545
   ClientWidth     =   2970
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2565
   ScaleWidth      =   2970
   Begin VB.CommandButton btnBack 
      BackColor       =   &H00C0C0C0&
      Caption         =   "Back"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   186
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   120
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   2160
      Width           =   1335
   End
   Begin VB.PictureBox containerRegister 
      Appearance      =   0  'Flat
      BackColor       =   &H00FF0000&
      ForeColor       =   &H80000008&
      Height          =   1935
      Left            =   120
      ScaleHeight     =   1905
      ScaleWidth      =   2745
      TabIndex        =   0
      Top             =   120
      Width           =   2775
      Begin VB.TextBox txtSecWordReg 
         Height          =   285
         Left            =   120
         MaxLength       =   6
         TabIndex        =   5
         Top             =   1080
         Width           =   1095
      End
      Begin VB.CommandButton btnRegister 
         Caption         =   "Register"
         BeginProperty Font 
            Name            =   "Arial Narrow"
            Size            =   11.25
            Charset         =   186
            Weight          =   400
            Underline       =   0   'False
            Italic          =   -1  'True
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   720
         TabIndex        =   3
         Top             =   1440
         Width           =   1335
      End
      Begin VB.TextBox txtPassReg 
         BeginProperty Font 
            Name            =   "Arial Narrow"
            Size            =   9.75
            Charset         =   186
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   120
         PasswordChar    =   "#"
         TabIndex        =   2
         Text            =   "Password"
         Top             =   600
         Width           =   2535
      End
      Begin VB.TextBox txtUserReg 
         BeginProperty Font 
            Name            =   "Arial Narrow"
            Size            =   9.75
            Charset         =   186
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   120
         TabIndex        =   1
         Text            =   "Username"
         Top             =   120
         Width           =   2535
      End
      Begin VB.Label lblSecWord 
         Alignment       =   2  'Center
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         BackStyle       =   0  'Transparent
         Caption         =   "Security Word"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   9
            Charset         =   186
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0000FFFF&
         Height          =   255
         Left            =   1320
         TabIndex        =   6
         Top             =   1080
         Width           =   1275
      End
   End
End
Attribute VB_Name = "frmRegister"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub btnBack_Click()
    Call Unload(Me)
    frmMainMenu.Show
End Sub

Private Sub txtPassReg_DblClick()
    txtPassReg.text = vbNullString
End Sub

Private Sub txtUserReg_DblClick()
    txtUserReg.text = vbNullString
End Sub

Private Sub btnRegister_Click()
    If Not IsConnected Then _
        Call ConnectToServer
    If Not IsConnected Then
        Call MsgBox("You are not connected to gameserver! Please try again.", _
        vbOKOnly, GAME_NAME)
        Call ConnectToServer
    Else
        Call CMD_CreateNewUser(txtUserReg.text, txtPassReg.text, frmMainMenu.Socket.LocalIP, txtSecWordReg.text)
    End If
End Sub

